//
//  ViewController.swift
//  IOS9DrawShapesTutorial
//
//  Created by 岚海网络 on 2019/4/2.
//  Copyright © 2019年 ljm. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    @IBAction func buttonPressed(_ sender: UIButton) {
        let myView = ShapeView(frame: CGRect(x: 30, y: 200, width: self.view.frame.width - 60, height: 200), shape: sender.tag)
        myView.backgroundColor = UIColor.lightGray
        view.addSubview(myView)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        
        
    }


}

